package com.tiancheng.onecode.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.tiancheng.onecode.entity.User;
import com.tiancheng.onecode.model.auth.UserSubjectProfile;
import com.tiancheng.onecode.model.request.admin.*;
import com.tiancheng.onecode.model.response.PageInfo;
import com.tiancheng.onecode.model.response.admin.MerchantUserQueryRes;

/**
 * @Author: kellen
 * @Description: 商户service
 * @Date: create in 2024/12/9 18:21
 */
public interface IUserService extends IService<User> {
    /**
     * 用户注册
     *
     * @param userRegisterReq
     */
    void register(UserRegisterReq userRegisterReq);
    /**
     * 用户账号密码登录
     *
     * @param userPwdLoginReq
     */
    UserSubjectProfile pwdLogin(UserPwdLoginReq userPwdLoginReq);
    /**
     * 分页查询
     * @param params
     * @return
     */
    PageInfo<MerchantUserQueryRes> queryPage(MerchantUserQueryReq params);

    /**
     * 添加商户管理员
     * @param params
     */
    void addMerchantUser(PlatformMerchantUserAddReq params);

    /**
     * 查询商户用户明细
     * @param platformMerchantUserId
     * @return
     */
    MerchantUserQueryRes detail(Long platformMerchantUserId);

    MerchantUserQueryRes queryPlatformMerchantId(Long platformMerchantId);
}
